package com.input4hua.mediator.mediator;

import com.input4hua.mediator.obj.ComObjImp1;
import com.input4hua.mediator.obj.ComObjImp2;

/**
 * Created by jiahua.hu on 2019/2/23.
 */
public abstract class Mediator {
    protected ComObjImp1 co1;
    protected ComObjImp2 co2;

    public ComObjImp1 getCo1() {
        return co1;
    }

    public void setCo1(ComObjImp1 co1) {
        this.co1 = co1;
    }

    public ComObjImp2 getCo2() {
        return co2;
    }

    public void setCo2(ComObjImp2 co2) {
        this.co2 = co2;
    }

    public abstract void doSomething1();
    public abstract void doSomething2();
}
